﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Mobile;

public partial class _Default : System.Web.UI.MobileControls.MobilePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Browser.IsMobileDevice)
        {
            Response.Redirect("~/DefaultMobile.aspx");
        }
        MobileCapabilities capabilities = (MobileCapabilities)Request.Browser;
        if (capabilities.ScreenPixelsWidth > 120)
        {
            // Code for larger screens
        }
        else
        {
            // Code for smaller screens
        }
    }
    protected void Calendar1_SelectionChanged( object sender, System.EventArgs e)
    {
        this.Label1.Text = Calendar1.SelectedDate.ToShortDateString();
    }
    public void Command1_Click(object sender, System.EventArgs e)
    {
        if (Page.IsValid == true)
        {
            ActiveForm = Form2;
        }
    }

}